﻿[#include "/app/common/layout/__frontmainlayout.html"/]
[@mainlayout pageJavascript=pageJavascript currentMenu="frontFlag"]
<div class="page-header">
	<h1>
		主页 <small> <i class="ace-icon fa fa-angle-double-right"></i> 故障申报列表</small>
	</h1>
</div>
<!-- /.page-header -->
<div class="row">
	<div class="col-xs-12">
		<div class="center">
			<table class="table table-bordered table-hover ">
				<thead>
					<tr>
						<th >序号</th>
						<th >标题</th>
						<th >申报部门</th>
						<th >运维部门</th>
						<th >申报人</th>
						<th >申报时间</th>
						<th >当前状态</th>
						<th >操作</th>
					</tr>
				</thead>
				<tbody>
				[#list overOrderPage.getList() as order]
				<tr >
					<td style="text-align:left;">${order_index+1}</td>
					<td style="text-align:left;">${(order.title)!}</td>
					<td style="text-align:left;">${(order.off_paname)!}</td>
					<td style="text-align:left;">${(order.deal_paname)!}</td>
					<td style="text-align:left;">${(order.off_user)!}</td>
					<td style="text-align:left;">${(order.offer_at)!}</td>
					<td >
						<b>
						[#if order.status=0]
						<span class="green">已处理</span>
						[#elseif order.status=1]
						<span class="orange">处理中</span>
						[#elseif order.status=2]
						<span class="gray">未处理</span>
						[/#if]
						</b>
					</td>
					<td >
					<a class="btn btn-minier btn-primary "   href="${ContextPath}/query?id=${order.id}"  >查看</a> 
					</td>
				</tr>
				[/#list]
				[#if overOrderPage.getList().size()!=10]
				[#assign size=(10-overOrderPage.getList().size())]
					[#list 1..size as t]
						<tr>
							<td style="text-align:left;">${(overOrderPage.getList().size()+t)!}</td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
					[/#list]
				[/#if]
			</tbody>
		</table>
			[#include "/page/common/_paginate.html" /]
			[@paginate currentPage=overOrderPage.pageNumber totalPage=overOrderPage.totalPage actionUrl="/" /]
		</div>
	</div>
</div>

[/@mainlayout]